Modem - QMI-network
This service is used to configure and manage the modem QMI network.
Note:
It is strongly recommended to do network configuration via the Network tab.
The QMI can be installed on the "Services" tab within the DINGO-Manager. The configuration can also be installed from a SSH terminal with this command: apt-get -y install libqmi-utils udhcpc
To configure the QMI; select the QMI service and click the "Main config. file..." button. See screenshot.
The QMI setup is used when the DINGO device is configured to use modem in the default interface setup and tries to make a modem connection.
Related services:
The modem and QMI-configuration can be tested from an SSH terminal.
Configuration file:
/etc/qmi-network.conf
Make connection:
bash -c 'echo Y > /sys/class/net/wwan0/qmi/raw_ip'
sudo qmi-network /dev/cdc-wdm0 start && udhcpc -b -i wwan0 && route add default dev wwan0
Stop connection:
sudo qmi-network /dev/cdc-wdm0 stop
ifconfig wwan0 down
Other commands:
sudo qmicli -d /dev/cdc-wdm0 --nas-get-signal-info
sudo qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength
sudo qmicli -d /dev/cdc-wdm0 --nas-get-home-network
sudo qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
sudo qmicli -d /dev/cdc-wdm0 --dms-uim-verify-pin=PIN,0000
sudo qmi-network /dev/cdc-wdm0 status
sudo qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status
sudo qmicli -d /dev/cdc-wdm0 --uim-get-card-status
sudo qmicli -d /dev/cdc-wdm0 --nas-network-scan
sudo qmicli -d /dev/cdc-wdm0 --nas-get-system-selection-preference
sudo qmicli -d /dev/cdc-wdm0 --dms-get-capabilities
Known problems
On some RASPBIAN 9 systems we get this error: error: couldn't start network: QMI protocol error (64): '(null)'
Solution: modify the function: start_network() in /usr/bin/qmi-network
START_NETWORK_ARGS="'apn=$APN,ip-type=4'"
For Buster (RASPBIAN 10):
START_NETWORK_ARGS="apn='$APN',ip-type=4"
If this error is encountered: verbose call end reason (6,50): [3gpp] ipv4-only-allowed, then the solution is to make sure that , ip-type=4, is included in the START_NETWORK_ARGS. See above.
Name: Modem - QMI-network
Tag: Networking
Description: Simple network management of QMI devices.
Type: Other
Configuration file: /etc/qmi-network
Log command: cat /var/log/messages | grep 'GoIoT: Modem'
Install command: apt-get -y install libqmi-utils udhcpc
Start command:
Stop command:
Restart command:
Status command: /opt/GoIoT/DinGo/bin/modem/rn_check_ppp0.sh
Enable command:
Disable command: